﻿<%@ Control Language="C#" ClassName="PatRolMenuFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdRol" runat="server" Text="Id Rol:" AssociatedControlID="dataIdRol" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataIdRol" DataSourceID="IdRolPatRolDataSource" DataTextField="DescripcionRol" DataValueField="IdRol" SelectedValue='<%# Bind("IdRol") %>' AppendNullItem="true" Required="true" NullItemText="< Seleccione ...>" ErrorText="Required" />
					<data:PatRolDataSource ID="IdRolPatRolDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdMenu" runat="server" Text="Id Menu:" AssociatedControlID="dataIdMenu" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataIdMenu" DataSourceID="IdMenuPatMenuDataSource" DataTextField="Descripcion" DataValueField="IdMenu" SelectedValue='<%# Bind("IdMenu") %>' AppendNullItem="true" Required="true" NullItemText="< Seleccione ...>" ErrorText="Required" />
					<data:PatMenuDataSource ID="IdMenuPatMenuDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataActivo" runat="server" Text="Activo:" AssociatedControlID="dataActivo" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataActivo" SelectedValue='<%# Bind("Activo") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Si" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


